package de.metalcon.gwt.server.modules;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.ServletContext;

import de.metalcon.gwt.shared.ContentTransmitter;

public class TestModuleServer extends AModuleServer {

	public TestModuleServer(HashMap<String, Object> requestVars,
			ServletContext context) {
		super(requestVars, context);
	}

	@Override
	public ContentTransmitter getTransmitter() {
		ContentTransmitter t = new ContentTransmitter();
		t.setString("testkey", "testvalue");
		for (Map.Entry<String, Object> entry : requestVars.entrySet()) {
			t.setString(entry.getKey(), (String) entry.getValue());
		}
		return t;
	}
}
